package com.qianyu.project.web.controller.sy;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qianyu.project.entity.ApplyWorkList;
import com.qianyu.project.entity.IncomeWorkAmount;
import com.qianyu.project.service.IApplyWorkListService;
import com.qianyu.project.utils.Result;
import com.qianyu.project.utils.ResultTool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("applyWorkList")
public class ProgressPaymentListController {
    @Autowired
    private IApplyWorkListService applyWorkListService;

    @GetMapping("{id}")
    public Result selectList(@PathVariable String id){
        return ResultTool.success(applyWorkListService.list(new QueryWrapper<ApplyWorkList>().eq("pid", id)));
    }
}
